Integrand size = 31, antiderivative size = 949 \[ \int \frac {(f+g x)^2 \left (a+b \log \left (c \left (d+e x^2\right )^p\right )\right )}{(h x)^{3/2}} \, dx=\frac {4 a f g \sqrt {h x}}{h^2}-\frac {16 b f g p \sqrt {h x}}{h^2}-\frac {8 b g^2 p (h x)^{3/2}}{9 h^3}-\frac {2 \sqrt {2} b \sqrt [4]{e} f^2 p \arctan \left (1-\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right )}{\sqrt [4]{d} h^{3/2}}-\frac {4 \sqrt {2} b \sqrt [4]{d} f g p \arctan \left (1-\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right )}{\sqrt [4]{e} h^{3/2}}-\frac {2 \sqrt {2} b d^{3/4} g^2 p \arctan \left (1-\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right )}{3 e^{3/4} h^{3/2}}+\frac {2 \sqrt {2} b \sqrt [4]{e} f^2 p \arctan \left (1+\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right )}{\sqrt [4]{d} h^{3/2}}+\frac {4 \sqrt {2} b \sqrt [4]{d} f g p \arctan \left (1+\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right )}{\sqrt [4]{e} h^{3/2}}+\frac {2 \sqrt {2} b d^{3/4} g^2 p \arctan \left (1+\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right )}{3 e^{3/4} h^{3/2}}+\frac {4 b f g \sqrt {h x} \log \left (c \left (d+e x^2\right )^p\right )}{h^2}-\frac {2 f^2 \left (a+b \log \left (c \left (d+e x^2\right )^p\right )\right )}{h \sqrt {h x}}+\frac {2 g^2 (h x)^{3/2} \left (a+b \log \left (c \left (d+e x^2\right )^p\right )\right )}{3 h^3}+\frac {\sqrt {2} b \sqrt [4]{e} f^2 p \log \left (\sqrt {d} \sqrt {h}+\sqrt {e} \sqrt {h} x-\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right )}{\sqrt [4]{d} h^{3/2}}-\frac {2 \sqrt {2} b \sqrt [4]{d} f g p \log \left (\sqrt {d} \sqrt {h}+\sqrt {e} \sqrt {h} x-\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right )}{\sqrt [4]{e} h^{3/2}}+\frac {\sqrt {2} b d^{3/4} g^2 p \log \left (\sqrt {d} \sqrt {h}+\sqrt {e} \sqrt {h} x-\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right )}{3 e^{3/4} h^{3/2}}-\frac {\sqrt {2} b \sqrt [4]{e} f^2 p \log \left (\sqrt {d} \sqrt {h}+\sqrt {e} \sqrt {h} x+\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right )}{\sqrt [4]{d} h^{3/2}}+\frac {2 \sqrt {2} b \sqrt [4]{d} f g p \log \left (\sqrt {d} \sqrt {h}+\sqrt {e} \sqrt {h} x+\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right )}{\sqrt [4]{e} h^{3/2}}-\frac {\sqrt {2} b d^{3/4} g^2 p \log \left (\sqrt {d} \sqrt {h}+\sqrt {e} \sqrt {h} x+\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right )}{3 e^{3/4} h^{3/2}} \]
[Out]
Time = 0.83 (sec) , antiderivative size = 949, normalized size of antiderivative = 1.00, number of steps used = 36, number of rules used = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.387, Rules used = {2517, 2526, 2498, 327, 217, 1179, 642, 1176, 631, 210, 2505, 303} \[ \int \frac {(f+g x)^2 \left (a+b \log \left (c \left (d+e x^2\right )^p\right )\right )}{(h x)^{3/2}} \, dx=-\frac {2 \sqrt {2} b \sqrt [4]{e} p \arctan \left (1-\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right ) f^2}{\sqrt [4]{d} h^{3/2}}+\frac {2 \sqrt {2} b \sqrt [4]{e} p \arctan \left (\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}+1\right ) f^2}{\sqrt [4]{d} h^{3/2}}-\frac {2 \left (a+b \log \left (c \left (e x^2+d\right )^p\right )\right ) f^2}{h \sqrt {h x}}+\frac {\sqrt {2} b \sqrt [4]{e} p \log \left (\sqrt {e} \sqrt {h} x+\sqrt {d} \sqrt {h}-\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right ) f^2}{\sqrt [4]{d} h^{3/2}}-\frac {\sqrt {2} b \sqrt [4]{e} p \log \left (\sqrt {e} \sqrt {h} x+\sqrt {d} \sqrt {h}+\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right ) f^2}{\sqrt [4]{d} h^{3/2}}-\frac {4 \sqrt {2} b \sqrt [4]{d} g p \arctan \left (1-\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right ) f}{\sqrt [4]{e} h^{3/2}}+\frac {4 \sqrt {2} b \sqrt [4]{d} g p \arctan \left (\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}+1\right ) f}{\sqrt [4]{e} h^{3/2}}+\frac {4 b g \sqrt {h x} \log \left (c \left (e x^2+d\right )^p\right ) f}{h^2}-\frac {2 \sqrt {2} b \sqrt [4]{d} g p \log \left (\sqrt {e} \sqrt {h} x+\sqrt {d} \sqrt {h}-\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right ) f}{\sqrt [4]{e} h^{3/2}}+\frac {2 \sqrt {2} b \sqrt [4]{d} g p \log \left (\sqrt {e} \sqrt {h} x+\sqrt {d} \sqrt {h}+\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right ) f}{\sqrt [4]{e} h^{3/2}}-\frac {16 b g p \sqrt {h x} f}{h^2}+\frac {4 a g \sqrt {h x} f}{h^2}-\frac {8 b g^2 p (h x)^{3/2}}{9 h^3}-\frac {2 \sqrt {2} b d^{3/4} g^2 p \arctan \left (1-\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right )}{3 e^{3/4} h^{3/2}}+\frac {2 \sqrt {2} b d^{3/4} g^2 p \arctan \left (\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}+1\right )}{3 e^{3/4} h^{3/2}}+\frac {2 g^2 (h x)^{3/2} \left (a+b \log \left (c \left (e x^2+d\right )^p\right )\right )}{3 h^3}+\frac {\sqrt {2} b d^{3/4} g^2 p \log \left (\sqrt {e} \sqrt {h} x+\sqrt {d} \sqrt {h}-\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right )}{3 e^{3/4} h^{3/2}}-\frac {\sqrt {2} b d^{3/4} g^2 p \log \left (\sqrt {e} \sqrt {h} x+\sqrt {d} \sqrt {h}+\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right )}{3 e^{3/4} h^{3/2}} \]
[In]
[Out]
Rule 210
Rule 217
Rule 303
Rule 327
Rule 631
Rule 642
Rule 1176
Rule 1179
Rule 2498
Rule 2505
Rule 2517
Rule 2526
Rubi steps \begin{align*} \text {integral}& = \frac {2 \text {Subst}\left (\int \frac {\left (f+\frac {g x^2}{h}\right )^2 \left (a+b \log \left (c \left (d+\frac {e x^4}{h^2}\right )^p\right )\right )}{x^2} \, dx,x,\sqrt {h x}\right )}{h} \\ & = \frac {2 \text {Subst}\left (\int \left (\frac {2 f g \left (a+b \log \left (c \left (d+\frac {e x^4}{h^2}\right )^p\right )\right )}{h}+\frac {f^2 \left (a+b \log \left (c \left (d+\frac {e x^4}{h^2}\right )^p\right )\right )}{x^2}+\frac {g^2 x^2 \left (a+b \log \left (c \left (d+\frac {e x^4}{h^2}\right )^p\right )\right )}{h^2}\right ) \, dx,x,\sqrt {h x}\right )}{h} \\ & = \frac {\left (2 g^2\right ) \text {Subst}\left (\int x^2 \left (a+b \log \left (c \left (d+\frac {e x^4}{h^2}\right )^p\right )\right ) \, dx,x,\sqrt {h x}\right )}{h^3}+\frac {(4 f g) \text {Subst}\left (\int \left (a+b \log \left (c \left (d+\frac {e x^4}{h^2}\right )^p\right )\right ) \, dx,x,\sqrt {h x}\right )}{h^2}+\frac {\left (2 f^2\right ) \text {Subst}\left (\int \frac {a+b \log \left (c \left (d+\frac {e x^4}{h^2}\right )^p\right )}{x^2} \, dx,x,\sqrt {h x}\right )}{h} \\ & = \frac {4 a f g \sqrt {h x}}{h^2}-\frac {2 f^2 \left (a+b \log \left (c \left (d+e x^2\right )^p\right )\right )}{h \sqrt {h x}}+\frac {2 g^2 (h x)^{3/2} \left (a+b \log \left (c \left (d+e x^2\right )^p\right )\right )}{3 h^3}+\frac {(4 b f g) \text {Subst}\left (\int \log \left (c \left (d+\frac {e x^4}{h^2}\right )^p\right ) \, dx,x,\sqrt {h x}\right )}{h^2}-\frac {\left (8 b e g^2 p\right ) \text {Subst}\left (\int \frac {x^6}{d+\frac {e x^4}{h^2}} \, dx,x,\sqrt {h x}\right )}{3 h^5}+\frac {\left (8 b e f^2 p\right ) \text {Subst}\left (\int \frac {x^2}{d+\frac {e x^4}{h^2}} \, dx,x,\sqrt {h x}\right )}{h^3} \\ & = \frac {4 a f g \sqrt {h x}}{h^2}-\frac {8 b g^2 p (h x)^{3/2}}{9 h^3}+\frac {4 b f g \sqrt {h x} \log \left (c \left (d+e x^2\right )^p\right )}{h^2}-\frac {2 f^2 \left (a+b \log \left (c \left (d+e x^2\right )^p\right )\right )}{h \sqrt {h x}}+\frac {2 g^2 (h x)^{3/2} \left (a+b \log \left (c \left (d+e x^2\right )^p\right )\right )}{3 h^3}-\frac {(16 b e f g p) \text {Subst}\left (\int \frac {x^4}{d+\frac {e x^4}{h^2}} \, dx,x,\sqrt {h x}\right )}{h^4}-\frac {\left (4 b \sqrt {e} f^2 p\right ) \text {Subst}\left (\int \frac {\sqrt {d} h-\sqrt {e} x^2}{d+\frac {e x^4}{h^2}} \, dx,x,\sqrt {h x}\right )}{h^3}+\frac {\left (4 b \sqrt {e} f^2 p\right ) \text {Subst}\left (\int \frac {\sqrt {d} h+\sqrt {e} x^2}{d+\frac {e x^4}{h^2}} \, dx,x,\sqrt {h x}\right )}{h^3}+\frac {\left (8 b d g^2 p\right ) \text {Subst}\left (\int \frac {x^2}{d+\frac {e x^4}{h^2}} \, dx,x,\sqrt {h x}\right )}{3 h^3} \\ & = \frac {4 a f g \sqrt {h x}}{h^2}-\frac {16 b f g p \sqrt {h x}}{h^2}-\frac {8 b g^2 p (h x)^{3/2}}{9 h^3}+\frac {4 b f g \sqrt {h x} \log \left (c \left (d+e x^2\right )^p\right )}{h^2}-\frac {2 f^2 \left (a+b \log \left (c \left (d+e x^2\right )^p\right )\right )}{h \sqrt {h x}}+\frac {2 g^2 (h x)^{3/2} \left (a+b \log \left (c \left (d+e x^2\right )^p\right )\right )}{3 h^3}-\frac {\left (4 b d g^2 p\right ) \text {Subst}\left (\int \frac {\sqrt {d} h-\sqrt {e} x^2}{d+\frac {e x^4}{h^2}} \, dx,x,\sqrt {h x}\right )}{3 \sqrt {e} h^3}+\frac {\left (4 b d g^2 p\right ) \text {Subst}\left (\int \frac {\sqrt {d} h+\sqrt {e} x^2}{d+\frac {e x^4}{h^2}} \, dx,x,\sqrt {h x}\right )}{3 \sqrt {e} h^3}+\frac {(16 b d f g p) \text {Subst}\left (\int \frac {1}{d+\frac {e x^4}{h^2}} \, dx,x,\sqrt {h x}\right )}{h^2}+\frac {\left (\sqrt {2} b \sqrt [4]{e} f^2 p\right ) \text {Subst}\left (\int \frac {\frac {\sqrt {2} \sqrt [4]{d} \sqrt {h}}{\sqrt [4]{e}}+2 x}{-\frac {\sqrt {d} h}{\sqrt {e}}-\frac {\sqrt {2} \sqrt [4]{d} \sqrt {h} x}{\sqrt [4]{e}}-x^2} \, dx,x,\sqrt {h x}\right )}{\sqrt [4]{d} h^{3/2}}+\frac {\left (\sqrt {2} b \sqrt [4]{e} f^2 p\right ) \text {Subst}\left (\int \frac {\frac {\sqrt {2} \sqrt [4]{d} \sqrt {h}}{\sqrt [4]{e}}-2 x}{-\frac {\sqrt {d} h}{\sqrt {e}}+\frac {\sqrt {2} \sqrt [4]{d} \sqrt {h} x}{\sqrt [4]{e}}-x^2} \, dx,x,\sqrt {h x}\right )}{\sqrt [4]{d} h^{3/2}}+\frac {\left (2 b f^2 p\right ) \text {Subst}\left (\int \frac {1}{\frac {\sqrt {d} h}{\sqrt {e}}-\frac {\sqrt {2} \sqrt [4]{d} \sqrt {h} x}{\sqrt [4]{e}}+x^2} \, dx,x,\sqrt {h x}\right )}{h}+\frac {\left (2 b f^2 p\right ) \text {Subst}\left (\int \frac {1}{\frac {\sqrt {d} h}{\sqrt {e}}+\frac {\sqrt {2} \sqrt [4]{d} \sqrt {h} x}{\sqrt [4]{e}}+x^2} \, dx,x,\sqrt {h x}\right )}{h} \\ & = \frac {4 a f g \sqrt {h x}}{h^2}-\frac {16 b f g p \sqrt {h x}}{h^2}-\frac {8 b g^2 p (h x)^{3/2}}{9 h^3}+\frac {4 b f g \sqrt {h x} \log \left (c \left (d+e x^2\right )^p\right )}{h^2}-\frac {2 f^2 \left (a+b \log \left (c \left (d+e x^2\right )^p\right )\right )}{h \sqrt {h x}}+\frac {2 g^2 (h x)^{3/2} \left (a+b \log \left (c \left (d+e x^2\right )^p\right )\right )}{3 h^3}+\frac {\sqrt {2} b \sqrt [4]{e} f^2 p \log \left (\sqrt {d} \sqrt {h}+\sqrt {e} \sqrt {h} x-\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right )}{\sqrt [4]{d} h^{3/2}}-\frac {\sqrt {2} b \sqrt [4]{e} f^2 p \log \left (\sqrt {d} \sqrt {h}+\sqrt {e} \sqrt {h} x+\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right )}{\sqrt [4]{d} h^{3/2}}+\frac {\left (8 b \sqrt {d} f g p\right ) \text {Subst}\left (\int \frac {\sqrt {d} h-\sqrt {e} x^2}{d+\frac {e x^4}{h^2}} \, dx,x,\sqrt {h x}\right )}{h^3}+\frac {\left (8 b \sqrt {d} f g p\right ) \text {Subst}\left (\int \frac {\sqrt {d} h+\sqrt {e} x^2}{d+\frac {e x^4}{h^2}} \, dx,x,\sqrt {h x}\right )}{h^3}+\frac {\left (2 \sqrt {2} b \sqrt [4]{e} f^2 p\right ) \text {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1-\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right )}{\sqrt [4]{d} h^{3/2}}-\frac {\left (2 \sqrt {2} b \sqrt [4]{e} f^2 p\right ) \text {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1+\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right )}{\sqrt [4]{d} h^{3/2}}+\frac {\left (\sqrt {2} b d^{3/4} g^2 p\right ) \text {Subst}\left (\int \frac {\frac {\sqrt {2} \sqrt [4]{d} \sqrt {h}}{\sqrt [4]{e}}+2 x}{-\frac {\sqrt {d} h}{\sqrt {e}}-\frac {\sqrt {2} \sqrt [4]{d} \sqrt {h} x}{\sqrt [4]{e}}-x^2} \, dx,x,\sqrt {h x}\right )}{3 e^{3/4} h^{3/2}}+\frac {\left (\sqrt {2} b d^{3/4} g^2 p\right ) \text {Subst}\left (\int \frac {\frac {\sqrt {2} \sqrt [4]{d} \sqrt {h}}{\sqrt [4]{e}}-2 x}{-\frac {\sqrt {d} h}{\sqrt {e}}+\frac {\sqrt {2} \sqrt [4]{d} \sqrt {h} x}{\sqrt [4]{e}}-x^2} \, dx,x,\sqrt {h x}\right )}{3 e^{3/4} h^{3/2}}+\frac {\left (2 b d g^2 p\right ) \text {Subst}\left (\int \frac {1}{\frac {\sqrt {d} h}{\sqrt {e}}-\frac {\sqrt {2} \sqrt [4]{d} \sqrt {h} x}{\sqrt [4]{e}}+x^2} \, dx,x,\sqrt {h x}\right )}{3 e h}+\frac {\left (2 b d g^2 p\right ) \text {Subst}\left (\int \frac {1}{\frac {\sqrt {d} h}{\sqrt {e}}+\frac {\sqrt {2} \sqrt [4]{d} \sqrt {h} x}{\sqrt [4]{e}}+x^2} \, dx,x,\sqrt {h x}\right )}{3 e h} \\ & = \frac {4 a f g \sqrt {h x}}{h^2}-\frac {16 b f g p \sqrt {h x}}{h^2}-\frac {8 b g^2 p (h x)^{3/2}}{9 h^3}-\frac {2 \sqrt {2} b \sqrt [4]{e} f^2 p \tan ^{-1}\left (1-\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right )}{\sqrt [4]{d} h^{3/2}}+\frac {2 \sqrt {2} b \sqrt [4]{e} f^2 p \tan ^{-1}\left (1+\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right )}{\sqrt [4]{d} h^{3/2}}+\frac {4 b f g \sqrt {h x} \log \left (c \left (d+e x^2\right )^p\right )}{h^2}-\frac {2 f^2 \left (a+b \log \left (c \left (d+e x^2\right )^p\right )\right )}{h \sqrt {h x}}+\frac {2 g^2 (h x)^{3/2} \left (a+b \log \left (c \left (d+e x^2\right )^p\right )\right )}{3 h^3}+\frac {\sqrt {2} b \sqrt [4]{e} f^2 p \log \left (\sqrt {d} \sqrt {h}+\sqrt {e} \sqrt {h} x-\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right )}{\sqrt [4]{d} h^{3/2}}+\frac {\sqrt {2} b d^{3/4} g^2 p \log \left (\sqrt {d} \sqrt {h}+\sqrt {e} \sqrt {h} x-\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right )}{3 e^{3/4} h^{3/2}}-\frac {\sqrt {2} b \sqrt [4]{e} f^2 p \log \left (\sqrt {d} \sqrt {h}+\sqrt {e} \sqrt {h} x+\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right )}{\sqrt [4]{d} h^{3/2}}-\frac {\sqrt {2} b d^{3/4} g^2 p \log \left (\sqrt {d} \sqrt {h}+\sqrt {e} \sqrt {h} x+\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right )}{3 e^{3/4} h^{3/2}}-\frac {\left (2 \sqrt {2} b \sqrt [4]{d} f g p\right ) \text {Subst}\left (\int \frac {\frac {\sqrt {2} \sqrt [4]{d} \sqrt {h}}{\sqrt [4]{e}}+2 x}{-\frac {\sqrt {d} h}{\sqrt {e}}-\frac {\sqrt {2} \sqrt [4]{d} \sqrt {h} x}{\sqrt [4]{e}}-x^2} \, dx,x,\sqrt {h x}\right )}{\sqrt [4]{e} h^{3/2}}-\frac {\left (2 \sqrt {2} b \sqrt [4]{d} f g p\right ) \text {Subst}\left (\int \frac {\frac {\sqrt {2} \sqrt [4]{d} \sqrt {h}}{\sqrt [4]{e}}-2 x}{-\frac {\sqrt {d} h}{\sqrt {e}}+\frac {\sqrt {2} \sqrt [4]{d} \sqrt {h} x}{\sqrt [4]{e}}-x^2} \, dx,x,\sqrt {h x}\right )}{\sqrt [4]{e} h^{3/2}}+\frac {\left (2 \sqrt {2} b d^{3/4} g^2 p\right ) \text {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1-\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right )}{3 e^{3/4} h^{3/2}}-\frac {\left (2 \sqrt {2} b d^{3/4} g^2 p\right ) \text {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1+\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right )}{3 e^{3/4} h^{3/2}}+\frac {\left (4 b \sqrt {d} f g p\right ) \text {Subst}\left (\int \frac {1}{\frac {\sqrt {d} h}{\sqrt {e}}-\frac {\sqrt {2} \sqrt [4]{d} \sqrt {h} x}{\sqrt [4]{e}}+x^2} \, dx,x,\sqrt {h x}\right )}{\sqrt {e} h}+\frac {\left (4 b \sqrt {d} f g p\right ) \text {Subst}\left (\int \frac {1}{\frac {\sqrt {d} h}{\sqrt {e}}+\frac {\sqrt {2} \sqrt [4]{d} \sqrt {h} x}{\sqrt [4]{e}}+x^2} \, dx,x,\sqrt {h x}\right )}{\sqrt {e} h} \\ & = \frac {4 a f g \sqrt {h x}}{h^2}-\frac {16 b f g p \sqrt {h x}}{h^2}-\frac {8 b g^2 p (h x)^{3/2}}{9 h^3}-\frac {2 \sqrt {2} b \sqrt [4]{e} f^2 p \tan ^{-1}\left (1-\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right )}{\sqrt [4]{d} h^{3/2}}-\frac {2 \sqrt {2} b d^{3/4} g^2 p \tan ^{-1}\left (1-\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right )}{3 e^{3/4} h^{3/2}}+\frac {2 \sqrt {2} b \sqrt [4]{e} f^2 p \tan ^{-1}\left (1+\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right )}{\sqrt [4]{d} h^{3/2}}+\frac {2 \sqrt {2} b d^{3/4} g^2 p \tan ^{-1}\left (1+\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right )}{3 e^{3/4} h^{3/2}}+\frac {4 b f g \sqrt {h x} \log \left (c \left (d+e x^2\right )^p\right )}{h^2}-\frac {2 f^2 \left (a+b \log \left (c \left (d+e x^2\right )^p\right )\right )}{h \sqrt {h x}}+\frac {2 g^2 (h x)^{3/2} \left (a+b \log \left (c \left (d+e x^2\right )^p\right )\right )}{3 h^3}+\frac {\sqrt {2} b \sqrt [4]{e} f^2 p \log \left (\sqrt {d} \sqrt {h}+\sqrt {e} \sqrt {h} x-\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right )}{\sqrt [4]{d} h^{3/2}}-\frac {2 \sqrt {2} b \sqrt [4]{d} f g p \log \left (\sqrt {d} \sqrt {h}+\sqrt {e} \sqrt {h} x-\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right )}{\sqrt [4]{e} h^{3/2}}+\frac {\sqrt {2} b d^{3/4} g^2 p \log \left (\sqrt {d} \sqrt {h}+\sqrt {e} \sqrt {h} x-\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right )}{3 e^{3/4} h^{3/2}}-\frac {\sqrt {2} b \sqrt [4]{e} f^2 p \log \left (\sqrt {d} \sqrt {h}+\sqrt {e} \sqrt {h} x+\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right )}{\sqrt [4]{d} h^{3/2}}+\frac {2 \sqrt {2} b \sqrt [4]{d} f g p \log \left (\sqrt {d} \sqrt {h}+\sqrt {e} \sqrt {h} x+\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right )}{\sqrt [4]{e} h^{3/2}}-\frac {\sqrt {2} b d^{3/4} g^2 p \log \left (\sqrt {d} \sqrt {h}+\sqrt {e} \sqrt {h} x+\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right )}{3 e^{3/4} h^{3/2}}+\frac {\left (4 \sqrt {2} b \sqrt [4]{d} f g p\right ) \text {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1-\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right )}{\sqrt [4]{e} h^{3/2}}-\frac {\left (4 \sqrt {2} b \sqrt [4]{d} f g p\right ) \text {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1+\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right )}{\sqrt [4]{e} h^{3/2}} \\ & = \frac {4 a f g \sqrt {h x}}{h^2}-\frac {16 b f g p \sqrt {h x}}{h^2}-\frac {8 b g^2 p (h x)^{3/2}}{9 h^3}-\frac {2 \sqrt {2} b \sqrt [4]{e} f^2 p \tan ^{-1}\left (1-\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right )}{\sqrt [4]{d} h^{3/2}}-\frac {4 \sqrt {2} b \sqrt [4]{d} f g p \tan ^{-1}\left (1-\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right )}{\sqrt [4]{e} h^{3/2}}-\frac {2 \sqrt {2} b d^{3/4} g^2 p \tan ^{-1}\left (1-\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right )}{3 e^{3/4} h^{3/2}}+\frac {2 \sqrt {2} b \sqrt [4]{e} f^2 p \tan ^{-1}\left (1+\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right )}{\sqrt [4]{d} h^{3/2}}+\frac {4 \sqrt {2} b \sqrt [4]{d} f g p \tan ^{-1}\left (1+\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right )}{\sqrt [4]{e} h^{3/2}}+\frac {2 \sqrt {2} b d^{3/4} g^2 p \tan ^{-1}\left (1+\frac {\sqrt {2} \sqrt [4]{e} \sqrt {h x}}{\sqrt [4]{d} \sqrt {h}}\right )}{3 e^{3/4} h^{3/2}}+\frac {4 b f g \sqrt {h x} \log \left (c \left (d+e x^2\right )^p\right )}{h^2}-\frac {2 f^2 \left (a+b \log \left (c \left (d+e x^2\right )^p\right )\right )}{h \sqrt {h x}}+\frac {2 g^2 (h x)^{3/2} \left (a+b \log \left (c \left (d+e x^2\right )^p\right )\right )}{3 h^3}+\frac {\sqrt {2} b \sqrt [4]{e} f^2 p \log \left (\sqrt {d} \sqrt {h}+\sqrt {e} \sqrt {h} x-\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right )}{\sqrt [4]{d} h^{3/2}}-\frac {2 \sqrt {2} b \sqrt [4]{d} f g p \log \left (\sqrt {d} \sqrt {h}+\sqrt {e} \sqrt {h} x-\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right )}{\sqrt [4]{e} h^{3/2}}+\frac {\sqrt {2} b d^{3/4} g^2 p \log \left (\sqrt {d} \sqrt {h}+\sqrt {e} \sqrt {h} x-\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right )}{3 e^{3/4} h^{3/2}}-\frac {\sqrt {2} b \sqrt [4]{e} f^2 p \log \left (\sqrt {d} \sqrt {h}+\sqrt {e} \sqrt {h} x+\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right )}{\sqrt [4]{d} h^{3/2}}+\frac {2 \sqrt {2} b \sqrt [4]{d} f g p \log \left (\sqrt {d} \sqrt {h}+\sqrt {e} \sqrt {h} x+\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right )}{\sqrt [4]{e} h^{3/2}}-\frac {\sqrt {2} b d^{3/4} g^2 p \log \left (\sqrt {d} \sqrt {h}+\sqrt {e} \sqrt {h} x+\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {h x}\right )}{3 e^{3/4} h^{3/2}} \\ \end{align*}
Time = 0.62 (sec) , antiderivative size = 478, normalized size of antiderivative = 0.50 \[ \int \frac {(f+g x)^2 \left (a+b \log \left (c \left (d+e x^2\right )^p\right )\right )}{(h x)^{3/2}} \, dx=\frac {2 x^{3/2} \left (2 a f g \sqrt {x}-8 b f g p \sqrt {x}+\frac {1}{3} a g^2 x^{3/2}-\frac {4}{9} b g^2 p x^{3/2}-\frac {2 \sqrt {2} b \sqrt [4]{d} f g p \arctan \left (1-\frac {\sqrt {2} \sqrt [4]{e} \sqrt {x}}{\sqrt [4]{d}}\right )}{\sqrt [4]{e}}+\frac {2 \sqrt {2} b \sqrt [4]{d} f g p \arctan \left (1+\frac {\sqrt {2} \sqrt [4]{e} \sqrt {x}}{\sqrt [4]{d}}\right )}{\sqrt [4]{e}}-\frac {2 b (-d)^{3/4} g^2 p \arctan \left (\frac {\sqrt [4]{e} \sqrt {x}}{\sqrt [4]{-d}}\right )}{3 e^{3/4}}+\frac {2 b (-d)^{3/4} g^2 p \text {arctanh}\left (\frac {\sqrt [4]{e} \sqrt {x}}{\sqrt [4]{-d}}\right )}{3 e^{3/4}}+\frac {2 b \sqrt [4]{e} f^2 p \left (\arctan \left (\frac {\sqrt [4]{e} \sqrt {x}}{\sqrt [4]{-d}}\right )+\text {arctanh}\left (\frac {d \sqrt [4]{e} \sqrt {x}}{(-d)^{5/4}}\right )\right )}{\sqrt [4]{-d}}-\frac {\sqrt {2} b \sqrt [4]{d} f g p \log \left (\sqrt {d}-\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {x}+\sqrt {e} x\right )}{\sqrt [4]{e}}+\frac {\sqrt {2} b \sqrt [4]{d} f g p \log \left (\sqrt {d}+\sqrt {2} \sqrt [4]{d} \sqrt [4]{e} \sqrt {x}+\sqrt {e} x\right )}{\sqrt [4]{e}}+2 b f g \sqrt {x} \log \left (c \left (d+e x^2\right )^p\right )+\frac {1}{3} b g^2 x^{3/2} \log \left (c \left (d+e x^2\right )^p\right )-\frac {f^2 \left (a+b \log \left (c \left (d+e x^2\right )^p\right )\right )}{\sqrt {x}}\right )}{(h x)^{3/2}} \]
[In]
[Out]
\[\int \frac {\left (g x +f \right )^{2} \left (a +b \ln \left (c \left (e \,x^{2}+d \right )^{p}\right )\right )}{\left (h x \right )^{\frac {3}{2}}}d x\]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 2118 vs. \(2 (673) = 1346\).
Time = 0.46 (sec) , antiderivative size = 2118, normalized size of antiderivative = 2.23 \[ \int \frac {(f+g x)^2 \left (a+b \log \left (c \left (d+e x^2\right )^p\right )\right )}{(h x)^{3/2}} \, dx=\text {Too large to display} \]
[In]
[Out]
Exception generated. \[ \int \frac {(f+g x)^2 \left (a+b \log \left (c \left (d+e x^2\right )^p\right )\right )}{(h x)^{3/2}} \, dx=\text {Exception raised: TypeError} \]
[In]
[Out]
none
Time = 0.32 (sec) , antiderivative size = 1119, normalized size of antiderivative = 1.18 \[ \int \frac {(f+g x)^2 \left (a+b \log \left (c \left (d+e x^2\right )^p\right )\right )}{(h x)^{3/2}} \, dx=\text {Too large to display} \]
[In]
[Out]
none
Time = 0.43 (sec) , antiderivative size = 577, normalized size of antiderivative = 0.61 \[ \int \frac {(f+g x)^2 \left (a+b \log \left (c \left (d+e x^2\right )^p\right )\right )}{(h x)^{3/2}} \, dx=\frac {6 \, {\left (\frac {\sqrt {h x} b g^{2} p x}{h} - \frac {3 \, b f^{2} p}{\sqrt {h x}} + \frac {6 \, \sqrt {h x} b f g p}{h}\right )} \log \left (e h^{2} x^{2} + d h^{2}\right ) - \frac {2 \, {\left (3 \, b g^{2} p \log \left (h^{2}\right ) + 4 \, b g^{2} p - 3 \, b g^{2} \log \left (c\right ) - 3 \, a g^{2}\right )} \sqrt {h x} x}{h} + \frac {6 \, {\left (6 \, \sqrt {2} b d e^{2} f g h p + 3 \, \sqrt {2} \sqrt {d e} b e^{2} f^{2} h p + \sqrt {2} \sqrt {d e} b d e g^{2} h p\right )} \arctan \left (\frac {\sqrt {2} {\left (\sqrt {2} \left (\frac {d h^{2}}{e}\right )^{\frac {1}{4}} + 2 \, \sqrt {h x}\right )}}{2 \, \left (\frac {d h^{2}}{e}\right )^{\frac {1}{4}}}\right )}{\left (d e^{3} h^{2}\right )^{\frac {3}{4}}} + \frac {6 \, {\left (6 \, \sqrt {2} b d e^{2} f g h p + 3 \, \sqrt {2} \sqrt {d e} b e^{2} f^{2} h p + \sqrt {2} \sqrt {d e} b d e g^{2} h p\right )} \arctan \left (-\frac {\sqrt {2} {\left (\sqrt {2} \left (\frac {d h^{2}}{e}\right )^{\frac {1}{4}} - 2 \, \sqrt {h x}\right )}}{2 \, \left (\frac {d h^{2}}{e}\right )^{\frac {1}{4}}}\right )}{\left (d e^{3} h^{2}\right )^{\frac {3}{4}}} + \frac {3 \, {\left (6 \, \sqrt {2} b d e^{2} f g h p + 3 \, \sqrt {2} \sqrt {d e} b e^{2} f^{2} h p + \sqrt {2} \sqrt {d e} b d e g^{2} h p\right )} \log \left (h x + \sqrt {2} \left (\frac {d h^{2}}{e}\right )^{\frac {1}{4}} \sqrt {h x} + \sqrt {\frac {d h^{2}}{e}}\right )}{\left (d e^{3} h^{2}\right )^{\frac {3}{4}}} - \frac {3 \, {\left (6 \, \sqrt {2} b d e^{2} f g h p - 3 \, \sqrt {2} \sqrt {d e} b e^{2} f^{2} h p - \sqrt {2} \sqrt {d e} b d e g^{2} h p\right )} \log \left (h x - \sqrt {2} \left (\frac {d h^{2}}{e}\right )^{\frac {1}{4}} \sqrt {h x} + \sqrt {\frac {d h^{2}}{e}}\right )}{\left (d e^{3} h^{2}\right )^{\frac {3}{4}}} + \frac {18 \, {\left (b f^{2} p \log \left (h^{2}\right ) - b f^{2} \log \left (c\right ) - a f^{2}\right )}}{\sqrt {h x}} - \frac {36 \, {\left (b f g p \log \left (h^{2}\right ) + 4 \, b f g p - b f g \log \left (c\right ) - a f g\right )} \sqrt {h x}}{h}}{9 \, h} \]
[In]
[Out]
Timed out. \[ \int \frac {(f+g x)^2 \left (a+b \log \left (c \left (d+e x^2\right )^p\right )\right )}{(h x)^{3/2}} \, dx=\int \frac {{\left (f+g\,x\right )}^2\,\left (a+b\,\ln \left (c\,{\left (e\,x^2+d\right )}^p\right )\right )}{{\left (h\,x\right )}^{3/2}} \,d x \]
[In]
[Out]